<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<style>
.cont{
    width:100%;
    margin:0 auto;
    }
.shop{
   width:18%;
   height:160px;
   float:left;
   text-align:center;
   margin:7px;
   }
.icon{
      width:120px; 
      height:140px;
   }
</style>
<div class="cont" >
  <s:iterator value="shops" id="shop" status="index">
        <div class="shop">
           <html:link page="/getProductsOfShop.do?shopId=${shop.id}"><img src="../..${shop.icon}" class="icon" ></html:link><br>
           <html:link page="/getProductsOfShop.do?shopId=${shop.id}"> <s:property value="%{#shop.name}"/></html:link>
         </div>
  </s:iterator>
</div>
